package com.tao.ifdemo2;

public class IfDemo3 {
    public static void main(String[] args) {
        int a = 2, b = 5, c = 8;
        if (a > b) {
            if (a > c) {
                System.out.println(a + "为最大值");
            } else {
                System.out.println(c + "为最大值");
            }
        } else {
            if (b < c) {
                System.out.println(c + "为最大值");
            } else {
                System.out.println(b + "为最大值");

            }
        }
    }
}
